<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="UserViewDlg" widgetVar="UserViewDialog" modal="true" resizable="false" appendTo="@(body)" header="#{message.ViewUserTitle}">
            <h:form id="UserViewForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{userController.selected != null}">
                        <h:outputText value="#{message.ViewUserLabel_userID}"/>
                        <h:outputText value="#{userController.selected.userID}" title="#{message.ViewUserTitle_userID}"/>
                        <h:outputText value="#{message.ViewUserLabel_groupname}"/>
                        <h:outputText value="#{userController.selected.groupname}" title="#{message.ViewUserTitle_groupname}"/>
                        <h:outputText value="#{message.ViewUserLabel_userCalendarPrivacy}"/>
                        <p:selectBooleanCheckbox value="#{userController.selected.userCalendarPrivacy}" disabled="true"/>
                        <h:outputText value="#{message.ViewUserLabel_userEmail}"/>
                        <h:outputText value="#{userController.selected.userEmail}" title="#{message.ViewUserTitle_userEmail}"/>
                        <h:outputText value="#{message.ViewUserLabel_userLastName}"/>
                        <h:outputText value="#{userController.selected.userLastName}" title="#{message.ViewUserTitle_userLastName}"/>
                        <h:outputText value="#{message.ViewUserLabel_userName}"/>
                        <h:outputText value="#{userController.selected.userName}" title="#{message.ViewUserTitle_userName}"/>
                        <h:outputText value="#{message.ViewUserLabel_userPassword}"/>
                        <h:outputText value="#{userController.selected.userPassword}" title="#{message.ViewUserTitle_userPassword}"/>
                        <h:outputText value="#{message.ViewUserLabel_userUsername}"/>
                        <h:outputText value="#{userController.selected.userUsername}" title="#{message.ViewUserTitle_userUsername}"/>
                        <h:outputText value="#{message.ViewUserLabel_userAddress}"/>
                        <h:outputText value="#{userController.selected.userAddress}" title="#{message.ViewUserTitle_userAddress}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{message.Close}" onclick="UserViewDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
